REM http://stackoverflow.com/questions/2229757/maven-add-a-dependency-to-a-jar-by-relative-path/2230464#2230464
REM @echo off
set localRepositoryPath=..\lib

set groupId=org.swinglabs
set version=1.6.2

set file=swingx-core-1.6.2.jar
set artifactId=swingx-core
call :install

set file=swingx-beaninfo-1.6.2.jar
set artifactId=swingx-beaninfo
call :install

goto :end

:install
call mvn install:install-file -Dfile=%file% -DgroupId=%groupId% -DartifactId=%artifactId% -Dversion=%version% -Dpackaging=jar -DlocalRepositoryPath=%localRepositoryPath%
goto :eof

:end
echo Finished
pause